import request from '@/utils/request'
// 获取图书列表
export const getBookListServer = (wrapper) => {
  console.log(wrapper)
  return request({
    url: '/book/page',
    method: 'get',
    params: { ...wrapper }
  })
}
//借书
export const borrowBookServer = (borrowWrapper) => {
  return request({
    url: '/book/borrow',
    method: 'put',
    params: { ...borrowWrapper }
  })
}
//幻术
export const returnBookServer = (returnWrapper) => {
  return request({
    url: '/book/return',
    method: 'put',
    params: { ...returnWrapper }
  })
}
